from django.conf.urls.defaults import *
from codingdojo.blog import views
from models import RecentEntries

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

feeds = {
    'recent': RecentEntries,
}


urlpatterns = patterns('',
    # Example:
    (r'^$', views.index),
    (r'^new/$', views.new),
    (r'^remove/(?P<id>\d+)$', views.remove),    
    (r'^rss/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    (r'^post/(?P<id>\d+)$', views.post),    
    (r'^post/(?P<post_id>\d+)/comment/new/$', views.comment_new),    

    # Uncomment the next line to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/(.*)', admin.site.root),
)